package time;


import java.math.BigInteger;
import java.util.Date;

public class a {
	public static void main(String[] args) {
		BigInteger b1 = new BigInteger("11111111");
		BigInteger b2 = new BigInteger("22222222");
		BigInteger b3 = new BigInteger("33333333");

		Rational r1 = new Rational(BigInteger.ONE,b1);
		Rational r2 = new Rational(BigInteger.ONE,b2);
		Rational r3 = new Rational(BigInteger.TEN,b3);
		System.out.println("TIME RIGHT NOW: " + (new Date()).toString());
		
		System.out.println("The value of the first Rational is: " + r1.toString());
		System.out.println("The value of the second Rational is: " + r2.toString());
		System.out.println("The value of the third Rational is: " + r3.toString());
		
		System.out.println("The result of r1 + r2 = " + r1.add(r2));
		System.out.println("The result of r1 - r3 = " + r1.subtract(r3));
		System.out.println("The result of r1 * r2 = " + r1.multiply(r2));
		System.out.println("The result of r1 / r3 = " + r1.devide(r3));

		System.out.println("TIME RIGHT NOW: " + (new Date()).toString());


	}
}
